<?
	include "../classes/init.php";
	
	if( !isset( $_SESSION[ 'user_no' ] ) || !isset( $_GET[ 'noMont' ] ) ) {
		header( "location: http://www.skiaplanche.ca/index.php" );
	}
	
	$objCritere = new Criteres( $objBD );
	/* vas chercher le nom de la montagne */
	$objMont = new Montagnes( $objBD, $_GET[ 'noMont' ] );

	$smarty->assign( "nomMontagne", $objMont->getNom() );
	$smarty->assign( "noUsager", $_SESSION[ 'user_no' ] );
	$smarty->assign( "noMontagne", $_GET[ 'noMont' ] );
	$smarty->assign( "listeCriteres", $objCritere->getCritereAndCat( $_GET[ 'noMont' ], $_SESSION[ 'user_no' ] ) );
	$smarty->assign( "body", "votes" );
	//$smarty->debugging = true;
	$smarty->display( "frame.tpl" );
?>